package com.masterrabbit.sn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.masterrabbit.sn.domain.Images;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 13119
* @description 针对表【images】的数据库操作Mapper
* @createDate 2025-03-18 10:00:39
* @Entity com/masterrabbit/sn.domain.Images
*/
@Mapper
public interface ImagesMapper extends BaseMapper<Images> {
    /**
     * 查找图片
     */
    @Select("SELECT * FROM images WHERE parent_id = #{imageId} or image_id = #{imageId}")
    List<Images> getImage(@Param("imageId") Integer imageId);

}




